#!/bin/bash

. common.sh 


echo LIBVPX
mkdir -p "$SRC"
cd $SRC 
curl -O -C - http://webm.googlecode.com/files/libvpx-v0.9.7.tar.bz2
tar xvjf libvpx-v0.9.7.tar.bz2
cd libvpx-v0.9.7 || exit 2

[ "$ARCH" = "i386" ] && I386OPT="--target=x86-darwin9-gcc"
./configure --prefix=$PREFIX --enable-vp8 --as=yasm $I386OPT  || exit 2
make   || exit 2
make install || exit 2
#cd $SRC && cd yasm-1.0.0 && make uninstall && rm -rf "${YASMTARGET}/"
 
